﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Principal.Master" AutoEventWireup="true" CodeBehind="Tienda.aspx.cs" Inherits="JurassicIslandWeb.Tienda" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CabeceraWeb" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContenidoWeb" runat="server">
    <asp:ToolkitScriptManager ID="tsmAjax" runat="server"></asp:ToolkitScriptManager>
<div class="two-posts">
        
        <div class="cl">&nbsp;</div>
            <div class="left">
                <div class="post">
                    <b>Selecciona el objeto que quieres comprar.</b>
                    <asp:RadioButtonList ID="rbListaObjetos" runat="server" ClientIDMode="Static" 
                        onselectedindexchanged="rbListaObjetos_SelectedIndexChanged" 
                        TextAlign="Left" AutoPostBack="True" CausesValidation="True">
                    </asp:RadioButtonList>
                    <asp:Panel ID="PanelMenu" runat="server">
                    </asp:Panel>
                    <!--<dt><a><b>Machete</b></a></dt>
                    <dt><a>Racion</a></dt>
                    <dt><a>Pistola</a></dt>-->
                </div>
            </div>
            <div class="right">
                <div class="post">
                <asp:UpdatePanel ID="upObjeto" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                    <p><b>Dinero:</b>
                    <asp:Label ID="lbSaldo" runat="server" Text="0">0</asp:Label>
                        &nbsp;<asp:Image ID="imgMoneda" runat="server" ImageUrl="~/Images/coin.gif" 
                            ClientIDMode="Static" Height="20px" ImageAlign="AbsMiddle" /></p>
                    <div runat="server" id="divArticulo" visible="False"><p><asp:Image ID="Mochila" runat="server" ImageUrl="Images/machete.jpg" 
                            Height="150px" /></p>
                    <p><b>Nombre:</b>
                    <asp:Label ID="lbNombre" runat="server" Text="-">Objeto</asp:Label></p>
                    <p><b>Coste:</b>
                    <asp:Label ID="lbCoste" runat="server" Text="0">0</asp:Label>
                        &nbsp;<asp:Image ID="imgMoneda2" runat="server" ImageUrl="~/Images/coin.gif" 
                            ClientIDMode="Static" Height="20px" ImageAlign="AbsMiddle" /></p></p>
                    <p><asp:LinkButton ID="lnkBtnComprar" runat="server" onclick="lnkBtnComprar_Click">Comprar</asp:LinkButton></p></div>
                    <p><asp:Label ID="lbRespuesta" runat="server" ForeColor="Yellow"></asp:Label><br />
                    <asp:HyperLink ID="hlVolver" runat="server" NavigateUrl="~/Mapa.aspx">Volver al mapa</asp:HyperLink></p>
                        
                        
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="rbListaObjetos" 
                            EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
                </div>
            </div>
        <div class="cl">&nbsp;</div>
        
        </div>
</asp:Content>
